package com.forte.deliveryservice;

import org.springframework.beans.factory.annotation.Autowired;

import com.forte.deliverydao.Delivery;
import com.forte.deliverydao.DeliveryDAO;

public class DeliveryServiceImpl implements DeliveryService {
	
	@Autowired
	DeliveryDAO deliveryDao;
	
	public void setDeliveryDAO(DeliveryDAO deliveryDao){
		this.deliveryDao = deliveryDao;
	}

	public void saveOrUpdate(Delivery delivery) {
		deliveryDao.saveOrUpdate(delivery);		
	}

	public Delivery findDeliveryById(int deliveryId) {
		return deliveryDao.findDeliveryById(deliveryId);		
	}

}
